/**
 * Author xiaol
 * Rev
 * Date: 2021-03-23 22:06
 * <p>
 * Copyright (C) 2021 Seeyon, Inc. All rights reserved.
 * <p>
 * This software is the proprietary information of Seeyon, Inc.
 * Use is subject to license terms.
 * @company seeyon.com
 * @author xiaol
 */
package com.lagou.bean;

import com.google.common.collect.Maps;

import java.util.Map;

/**
 * bean容器
 * @description
 * @date 2021-03-23 22:06
 * @author xiaol
 */
public class BeanIoc {

	private static Map<String,BeanDefinition> beanMap = Maps.newConcurrentMap();

	private static volatile BeanIoc beanIoc = null;

	private BeanIoc(){
	}

	public static BeanIoc getInstance(){
		if(beanIoc == null){
			synchronized (BeanIoc.class) {
				beanIoc = new BeanIoc();
			}
		}
		return beanIoc;
	}

	public Map<String,BeanDefinition> getBeanMap(){
		return beanMap;
	}

}
